﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Eagle.Web.TagFactory
{
    /// <summary>
    /// Link标签生成类
    /// </summary>
    public class Link
    {
        /// <summary>
        /// 生成Link标签
        /// </summary>
        /// <param name="href">地址</param>
        /// <param name="properties">其他属性</param>
        /// <returns></returns>
        public static string Create(string href, string properties)
        {
            return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + href + "\" " + properties + " />";
        }

        /// <summary>
        /// 生成Link标签
        /// </summary>
        /// <param name="href">地址</param>
        /// <returns></returns>
        public static string Create(string href)
        {
            return Create(href, "");
        }
    }
}
